## 
## bar_descriptions.py
## @ianpasm(kno30826@gmail.com)
## 2018-04-05 11:35:38
## 
 
#!/usr/bin/env python3
# coding=utf-8

import pygal
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS

my_style = LS('#333366', base_style=LCS)
chart = pygal.Bar(style=my_style, x_label_rotation=45, show_legend=False)

chart.title = 'Python Projects'
chart.x_labels = ['httpie', 'django', 'flask']

plot_dicts = [
        {'value': 16101, 'label': 'Description of httpie.'},
        {'value': 15028, 'label': 'Description of django.'},
        {'value': 14798, 'label': 'Description of flask.'},
        ]

chart.add('', plot_dicts)
chart.render_to_file('bar_descriptions.svg')




